import request from '@/utils/request'

// 查询兑换列表
export function listWalletExchange(query) {
  return request({
    url: '/boot/wallet/walletExchange/list',
    method: 'get',
    params: query
  })
}

// 查询兑换详细
export function getWalletExchange(id) {
  return request({
    url: '/system/walletExchange/' + id,
    method: 'get'
  })
}

// 新增兑换
export function addWalletExchange(data) {
  return request({
    url: '/system/walletExchange',
    method: 'post',
    data: data
  })
}

// 修改兑换
export function updateWalletExchange(data) {
  return request({
    url: '/system/walletExchange',
    method: 'put',
    data: data
  })
}

// 删除兑换
export function delWalletExchange(id) {
  return request({
    url: '/system/walletExchange/' + id,
    method: 'delete'
  })
}
